package com.example.plus5;

import android.content.Context;
import android.widget.ImageButton;
import android.content.Intent;
import android.view.View;
import android.widget.Button;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;

public class Alarm
    extends Activity
{

    public static MediaPlayer player;
    int[][]                   moles   = new int[4][4];
    ImageButton               button1, ImageButton1, ImageButton2,
        ImageButton3, ImageButton4, ImageButton5, ImageButton6, ImageButton7,
        ImageButton8, ImageButton9, ImageButton10;

    Context                   context = this;
    View                      view    = new View(this);


   @Override
    protected void onCreate(Bundle savedInstanceState)
    {

        super.onCreate(savedInstanceState);
        sEetContentView(R.layout.activity_alarm);
        button1 = (ImageButton)findViewById(R.id);

        player = MediaPlayer.create(getBaseContext(), R.raw.alarm);
        player.isLooping();
        player.setVolume(100, 100);
        // player.release();
        player.start();
/*
        for (int i = 0; i < 6; i++)
        {
            int randomNum = 1 + (int)(Math.random() * 12);
            String imageName = new String("ImageButton" + i);
            ImageButton current = imageName;
            ImageButton.setBackgroundResource(R.drawable.ic_launcher);
        }*/

    }


    @Override
    public boolean onCreateOptionsMenu(Menu menu)
    {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.alarm, menu);
        return true;
    }


    public void snooze(View view)
    {
        player.stop();
    }

// public void setConfigurations(View view) {
// EditText time = (EditText) findViewById(R.id.time);
// Time now = new Time();
// now.setToNow();
// time.setText(now.toString());
// }

}
